package com.yingxin.yxerp.module.report.task.controller;

//import com.yingxin.yxerp.module.material.stock.unified.service.IWarehouseTransferBillService;
//import com.yingxin.yxerp.module.report.manager.DaySynthesizeManager;
//import com.yingxin.yxerp.module.report.service.*;
//import com.yingxin.yxerp.module.report.task.day.DayReportTask;
//import com.yingxin.yxerp.module.report.task.monthly.MonthlyMaterialStockTask;
//import com.yingxin.yxerp.module.report.task.monthly.MonthlyStoppageReportTask;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import java.text.ParseException;
//import java.util.Calendar;

import com.yingxin.yxerp.module.sale.unified.service.IZhayingSaleCancelPresaleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "定时任务手动触发")
@RestController
@RequestMapping("/report/task")
public class TaskController {

    @Autowired
    private IZhayingSaleCancelPresaleService zhayingSaleCancelPresaleService;

    @ApiOperation(value = "取消预售单 - 批量取消")
    @PostMapping("/cancel/list")
    public void createList() {
        zhayingSaleCancelPresaleService.cancelZyPresaleBill();
    }

    //    @Autowired
    //    private MonthlyMaterialStockTask monthlyMaterialStockTask;
    //
    //    @Autowired
    //    private DayReportTask dayReportTask;
    //
    //    @Autowired
    //    private MonthlyStoppageReportTask monthlyStoppageReportTask;
    //
    //    @Autowired
    //    private DaySynthesizeManager daySynthesizeManager;
    //
    //    @Autowired
    //    private IZhayingSaleInvoicedStatService zhayingSaleInvoicedStatService;
    //
    //    @Autowired
    //    private ISpecialSpecStatService specialSpecStatService;
    //
    //    @Autowired
    //    private IAbnormalDataReportService abnormalDataReportService;
    //
    //    @Autowired
    //    private IDuxinWorkshopReportService duxinWorkshopReportService;
    //
    //    @Autowired
    //    private IWarehouseTransferBillService warehouseTransferBillService;
    //
    //    @Autowired
    //    private IZhayingProduceCollectDayBillSend zhayingProduceCollectDayBillSend;
    //
    //    @Autowired
    //    private IZhayingSaleExceptionalDayBillSend zhayingSaleExceptionalDayBillSend;
    //
    //    @ApiOperation(value = "热轧采购日报表-根据id查询")
    //    @PostMapping("/monthlyMaterialStock")
    //    public void monthlyMaterialStock() {
    //        monthlyMaterialStockTask.exec();
    //    }
    //
    //    @ApiOperation(value = "热轧采购日报表-根据id查询")
    //    @PostMapping("/monthlyStoppage")
    //    public void monthlyStoppageReport() throws ParseException {
    //        monthlyStoppageReportTask.exec();
    //    }

    // @ApiOperation(value = "0200执行")
    // @PostMapping("/exec0200")
    // public void exec0200() throws ParseException {
        // dayReportTask.exec0200();
    // }
    //
    //    @ApiOperation(value = "轧硬索价合同日报表")
    //    @PostMapping("/exec1830")
    //    public void exec1830() throws ParseException {
    //        dayReportTask.exec1830();
    //    }
    //
    //    @ApiOperation(value = "热轧合同入库日报表")
    //    @PostMapping("/rzhtrkrbb")
    //    public void rzhtrkrbb() throws ParseException {
    //        dayReportTask.exec08Rzhtrk();
    //    }
    //
    //    @ApiOperation(value = "热轧采购付款（货款）日报生成")
    //    @PostMapping("/rzcgfkhkrbb")
    //    public void rzcgfkhkrbb() throws ParseException {
    //        dayReportTask.exec08Rzcghk();
    //    }
    //
    //    @ApiOperation(value = "热轧采购付款（运费）日报生成")
    //    @PostMapping("/rzcgfkyfrbb")
    //    public void rzcgfkyfrbb() throws ParseException {
    //        dayReportTask.exec08Rzcgyf();
    //    }
    //
    //    @ApiOperation(value = "轧硬交货异常卷考核日报")
    //    @PostMapping("/exec08Zyjhyc")
    //    public void exec08Zyjhyc() throws ParseException {
    //        dayReportTask.exec08Zyjhyc();
    //    }
    //
    //    @ApiOperation(value = "0800执行")
    //    @PostMapping("/exec0800rzsxhz3")
    //    public void exec0800rzsxhz3() throws ParseException {
    //        dayReportTask.exec08Rzsxhz3();
    //    }
    //
    //    @ApiOperation(value = "0800执行")
    //    @PostMapping("/exec08ToalStock")
    //    public void exec08ToalStock() throws ParseException {
    //        dayReportTask.exec08ToalStock();
    //    }
    //
    //    @ApiOperation(value = "0200执行")
    //    @PostMapping("/exec02dayZyjg")
    //    public void exec02dayZyjg() throws ParseException {
    //        dayReportTask.exec02dayZyjg();
    //    }
    //
    //    @ApiOperation(value = "0800执行")
    //    @PostMapping("/exec08sendRezhaOemZhayingOwnerDay")
    //    public void exec08sendRezhaOemZhayingOwnerDay() throws ParseException {
    //        dayReportTask.exec08sendRezhaOemZhayingOwnerDay();
    //    }

    // @ApiOperation(value = "0000取消轧硬预售卷")
    // @PostMapping("/cancelZySale")
    // public void cancelZySale() throws ParseException {
        // dayReportTask.cancelSalePresaleJuan();
    // }

    //    @ApiOperation(value = "热轧代工合同日报表")
    //    @PostMapping("/dayRzdght")
    //    public void dayRzdght() throws ParseException {
    //        daySynthesizeManager.dayRzdght();
    //    }
    //
    //    @ApiOperation(value = "热轧采购日报表")
    //    @PostMapping("/rezhaPurchaseDailyReport")
    //    public void rezhaPurchaseDailyReport(){
    //        daySynthesizeManager.rezhaPurchaseDailyReport();
    //    }
    //
    //    @ApiOperation(value = "轧硬库存汇总表")
    //    @PostMapping("/zhayingStockHuizongMapper")
    //    public void zhayingStockHuizongMapper(){
    //        daySynthesizeManager.zhayingStockHuizongMapper();
    //    }
    //
    //    @ApiOperation(value = "销售情况统计表")
    //    @PostMapping("/zhayingSaleInvoicedStatService")
    //    public void zhayingSaleInvoicedStatService(){
    //        zhayingSaleInvoicedStatService.create(Calendar.getInstance());
    //    }
    //
    //    @ApiOperation(value = "特规订货入库汇总表")
    //    @PostMapping("/teguidinghuorukuhuizong")
    //    public void teguidinghuorukuhuizong(){
    //        // 特规订货入库汇总
    //        specialSpecStatService.create(Calendar.getInstance());
    //    }
    //
    //    @ApiOperation(value = "实际库存汇总")
    //    @PostMapping("/getTotalStock")
    //    public void getTotalStock(){
    //        daySynthesizeManager.getTotalStock();
    //    }
    //
    //    @ApiOperation(value = "异常数据日报表")
    //    @PostMapping("/ycrbbcreate")
    //    public void ycrbbcreate(){
    //        abnormalDataReportService.create();
    //    }
    //
    //    @ApiOperation(value = "镀锌车间产量单耗日报表")
    //    @PostMapping("/dxcldhbcreate")
    //    public void dxcldhbcreate() throws ParseException {
    //        duxinWorkshopReportService.create("10304");
    //    }
    //
    //    @ApiOperation(value = "锁价排产日报表")
    //    @PostMapping("/suojiaplandaylog")
    //    public void suojiaplandaylog(){
    //        daySynthesizeManager.LockPricePlanDayLog();
    //
    //        daySynthesizeManager.LockPricePlanDayParticularLog();
    //    }
    //
    //    @ApiOperation(value = "热轧代工轧硬排产日报表")
    //    @PostMapping("/rzdgzyplandaylog")
    //    public void rzdgzyplandaylog(){
    //        daySynthesizeManager.RzdgzyLockPricePlanDayParticularLog();
    //    }
    //
    //    @ApiOperation(value = "镀锌计划移库发送图片")
    //    @PostMapping("/sendDuxinPlanMove")
    //    public void sendDuxinPlanMove(){
    //        warehouseTransferBillService.sendPictureGroup( "1072197247854182402" );
    //    }
    //
    //    @ApiOperation(value = "镀锌锁价销售日报表")
    //    @PostMapping("/dxsjxsrbb")
    //    public void dxsjxsrbb(){
    //        daySynthesizeManager.dayDxsj();
    //    }
    //
    //    @ApiOperation(value = "轧硬锁价销售日报表")
    //    @PostMapping("/zysjxsrbb")
    //    public void zysjxsrbb(){
    //        daySynthesizeManager.dayZysj();
    //    }
    //
    //    @ApiOperation(value = "镀锌价格表")
    //    @PostMapping("/dxjgb")
    //    public void dxjgb(){
    //        daySynthesizeManager.dayDxjg();
    //    }

    // @ApiOperation(value = "同步部门，同步员工")
    // @PostMapping("/synchronism")
    // public void synchronism() throws ParseException, ApiException, IllegalAccessException {
        // dayReportTask.scheduled05();
    // }

    // @ApiOperation(value = "生成成本分析-工资")
    // @PostMapping("/createcost")
    // public void createcost() {
        // dayReportTask.scheduled06();
    // }

    // @ApiOperation(value = "生成成本分析-结算")
    // @PostMapping("/createcost0630")
    // public void createcost0630() {
        // dayReportTask.scheduled0630();
    // }

    //    @PostMapping("/zhaying/produce/collect/day/bill/send")
    //    public void zhayingProduceCollectDayBillSend() {
    //        zhayingProduceCollectDayBillSend.send();
    //    }
    //
    //    @PostMapping("/zhaying/sale/exceptional/day/bill/send")
    //    public void zhayingSaleExceptionalDayBillSend() {
    //        zhayingSaleExceptionalDayBillSend.send();
    //    }

}
